package br.com.sgc.entities.geral;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

@Entity
@Table(schema="geral")
public class Parametro implements Serializable{

	private static final long serialVersionUID = 357891143979101098L;
	
	@Id
	@SequenceGenerator(sequenceName="geral.seq_parametro", name="SEQ", allocationSize=1)
	@GeneratedValue(strategy=GenerationType.SEQUENCE,  generator="SEQ")
	private Long id;
	
	@Column(name="qntd_consultas_horario")
	private Integer qntdratamentosHorario;
	
	@Column(name="qntd_tempo_consulta_padrao")
	private Integer qntdTempoConsultaPadrao;
	
	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name="clinica_id")
	private Clinica clinica = new Clinica();

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Integer getQntdratamentosHorario() {
		return qntdratamentosHorario;
	}

	public void setQntdratamentosHorario(Integer qntdratamentosHorario) {
		this.qntdratamentosHorario = qntdratamentosHorario;
	}

	public Integer getQntdTempoConsultaPadrao() {
		return qntdTempoConsultaPadrao;
	}

	public void setQntdTempoConsultaPadrao(Integer qntdTempoConsultaPadrao) {
		this.qntdTempoConsultaPadrao = qntdTempoConsultaPadrao;
	}

	public Clinica getClinica() {
		return clinica;
	}

	public void setClinica(Clinica clinica) {
		this.clinica = clinica;
	}
	
}
